home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDOMSVGGradientElement.idl < prev    next >
Text File  |  2006-05-08  |  5KB  |  131 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is the Mozilla SVG project.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Scooter Morris.
  19.  * Portions created by the Initial Developer are Copyright (C) 2004
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Scooter Morris <scootermorris@comcast.net>
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #include "nsIDOMSVGElement.idl"
  40.  
  41. /**
  42.  * The nsIDOMSVGGradientElement interface is the interface to an SVG
  43.  * gradient element.
  44.  *
  45.  * For more information on this interface please see
  46.  * http://www.w3.org/TR/SVG11/pservers.html
  47.  *
  48.  */
  49.  
  50. interface nsIDOMSVGAnimatedEnumeration;
  51. interface nsIDOMSVGAnimatedTransformList;
  52.  
  53. [scriptable, uuid(988b2de4-137b-4bb8-a15e-fe94038e9cf3)]
  54. interface nsIDOMSVGGradientElement
  55.   : nsIDOMSVGElement
  56. /*
  57.         The SVG DOM makes use of multiple interface inheritance.
  58.         Since XPCOM only supports single interface inheritance,
  59.         the best thing that we can do is to promise that whenever
  60.         an object implements _this_ interface it will also
  61.         implement the following interfaces. (We then have to QI to
  62.         hop between them.)
  63.         
  64.     nsIDOMSVGURIReference,
  65.     nsIDOMSVGStylable
  66. */
  67.   const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0;
  68.   const unsigned short SVG_SPREADMETHOD_PAD     = 1;
  69.   const unsigned short SVG_SPREADMETHOD_REFLECT = 2;
  70.   const unsigned short SVG_SPREADMETHOD_REPEAT  = 3;
  71.   // Extended to provide enumerations for gradientUnits
  72.   // These constants are taken from SVGUnitTypes
  73.   const unsigned short SVG_GRUNITS_UNKNOWN = 0;
  74.   const unsigned short SVG_GRUNITS_OBJECTBOUNDINGBOX = 1;
  75.   const unsigned short SVG_GRUNITS_USERSPACEONUSE = 2;
  76.  
  77.  
  78.   readonly attribute nsIDOMSVGAnimatedEnumeration gradientUnits;
  79.   readonly attribute nsIDOMSVGAnimatedTransformList gradientTransform;
  80.   readonly attribute nsIDOMSVGAnimatedEnumeration spreadMethod;
  81. };
  82.  
  83.  
  84. /**
  85.  * The nsIDOMSVGLinearGradientElement interface is the interface to an SVG
  86.  * linear gradient element.
  87.  *
  88.  * For more information on this interface please see
  89.  * http://www.w3.org/TR/SVG11/pservers.html
  90.  *
  91.  */
  92.  
  93. // Linear gradient
  94. interface nsIDOMSVGAnimatedLength;
  95.  
  96. [scriptable, uuid(7e15fce5-b208-43e1-952a-c570ebad0619)]
  97. interface nsIDOMSVGLinearGradientElement
  98.   : nsIDOMSVGGradientElement
  99.   readonly attribute nsIDOMSVGAnimatedLength x1;
  100.   readonly attribute nsIDOMSVGAnimatedLength y1;
  101.   readonly attribute nsIDOMSVGAnimatedLength x2;
  102.   readonly attribute nsIDOMSVGAnimatedLength y2;
  103. };
  104.  
  105. /**
  106.  * The nsIDOMSVGRadialGradientElement interface is the interface to an SVG
  107.  * radial gradient element.
  108.  *
  109.  * For more information on this interface please see
  110.  * http://www.w3.org/TR/SVG11/pservers.html
  111.  *
  112.  */
  113.  
  114. // Radial gradient
  115. interface nsIDOMSVGAnimatedLength;
  116.  
  117. [scriptable, uuid(d0262ae1-31a4-44be-b82e-85e4cfe280fd)]
  118. interface nsIDOMSVGRadialGradientElement
  119.   : nsIDOMSVGGradientElement
  120.   readonly attribute nsIDOMSVGAnimatedLength cx;
  121.   readonly attribute nsIDOMSVGAnimatedLength cy;
  122.   readonly attribute nsIDOMSVGAnimatedLength r;
  123.   readonly attribute nsIDOMSVGAnimatedLength fx;
  124.   readonly attribute nsIDOMSVGAnimatedLength fy;
  125. };
  126.  
  127.  
  128.